/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.scene.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.scene.domain.OperationActivity;
import com.koron.scene.domain.OperationActivityQuery;
import com.koron.scene.domain.OperationTicket;
import org.koron.ebs.mybatis.SessionFactory;
import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import java.io.OutputStream;

/**
 * 作业活动服务接口
 *
 * @author lwl
 * @since 2023/4/10
 */
public interface OperationActivityService {
    MessageBean list(SessionFactory factory, OperationActivityQuery bean);

    MessageBean add(SessionFactory factory, OperationActivity bean, StaffBean user);

    MessageBean update(SessionFactory factory, OperationActivity bean, StaffBean user);

    MessageBean delete(SessionFactory factory, String id);

    MessageBean detail(SessionFactory factory, String id);

    MessageBean queryOperationTicketById(SessionFactory factory, String id);

    /**
     * 导出作业票
     * @param factory   会话工厂
     * @param os        http响应输出流
     * @param id        作业票id
     * @return
     */
    MessageBean exportOperationTicket(SessionFactory factory, OutputStream os, String id);

    MessageBean confirm(SessionFactory factory, OperationTicket ticket);

    MessageBean<?> getProcessData(String ids);

    MessageBean flowSignSave(SessionFactory factory, StaffBean user, String id, MultipartFile[] files);
}
